package com.lvmama.task.job.worker;

import com.lvmama.task.common.service.TaskScheduleService;
import com.lvmama.task.job.common.TaskJobParameters;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;

/**
 * Created by troy on 2016/7/4.
 * kouhongyu@163.com
 */
@Service
public class TaskScheduleJob {

    private TaskScheduleService taskScheduleService;

    public void execute() {
        taskScheduleService.schedule(TaskJobParameters.TASK_JOB_NODE,
                TaskJobParameters.TASK_JOB_OWNER);
    }

    public void setTaskScheduleService(TaskScheduleService taskScheduleService) {
        this.taskScheduleService = taskScheduleService;
    }
}
